﻿<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
  <ribbon>
    <contextualTabs>
      <tabSet idMso="TabSetVideoTools">
        <tab idMso="TabVideoToolsEdit">
          <group id="CaptionGroup" label="Captions">

            <!-- Add / create -->
            <splitButton id="sbAddCaptions" size="large" >
              <button id="btnAddCaptionsHeader" label="Add Captions" onAction="CreateCaptionsOnAction" getEnabled="AddCaptionsGetEnabled" getImage="GetImage" tag="imgAddCaptions"/>
              <menu id="mnuAddCaptions" label="Add" description="Add or create captions for the media element." showLabel="true" >
                <button id="btnCreateCaptions" label="Create Captions" onAction="CreateCaptionsOnAction" getEnabled="CreateCaptionsGetEnabled" getImage="GetImage" tag="imgAddCaptionsSmall" supertip="Create new captions for this media element." />
                <button id="btnAddCaptions" label="Captions From File" onAction="AddCaptionsOnAction" getEnabled="AddCaptionsGetEnabled" getImage="GetImage" tag="imgFolderSmall" supertip="Load existing captions from a TTML file." />                
              </menu>
            </splitButton>

            <button id="btnEditCaptions" label="Edit Captions" onAction="EditCaptionsOnAction" getEnabled="EditCaptionsGetEnabled" size="large"  getImage="GetImage" tag="imgEditCaptions" supertip="Modify the current captions." />
            <button id="btnAlignCaptions" label="Align Captions" onAction="AlignCaptionsOnAction" getEnabled="AlignCaptionsGetEnabled" size="large" getImage="GetImage" tag="imgAlignCaptions" supertip="Re-align the captions to the new media element size or placement." />

            <button id="btnHideCaptions" label="Hide" onAction="HideCaptionsOnAction" getEnabled="HideCaptionsGetEnabled" getImage="GetImage" tag="imgHideCaptionsSmall" supertip="Prevent the captions from being displayed." />
            <button id="btnShowCaptions" label="Show" onAction="ShowCaptionsOnAction" getEnabled="ShowCaptionsGetEnabled" getImage="GetImage"  tag="imgShowCaptionsSmall" supertip="Re-display the existing captions for this media element." />
            <button id="btnRemoveCaptions" label="Remove" onAction="RemoveCaptionsOnAction" getEnabled="RemoveCaptionsGetEnabled" getImage="GetImage" tag="imgRemoveCaptionsSmall" supertip="Permanently remove the captions."/>
          </group>
        </tab>
      </tabSet>
      
      <tabSet idMso="TabSetAudioTools">
        <tab idMso="TabAudioToolsEdit">
          <group id="AudioToolsCaptionGroup" label="Captions">

            <!-- Add / create -->
            <splitButton id="sbAudioToolsAddCaptions" size="large" >
              <button id="btnAudioToolsAddCaptionsHeader" label="Add Captions" onAction="CreateCaptionsOnAction" getEnabled="AddCaptionsGetEnabled"  getImage="GetImage" tag="imgAddCaptions" />
              <menu id="mnuAudioToolsAddCaptions" label="Add" description="Add or create captions for the media element." showLabel="true" >
                <button id="btnAudioToolsCreateCaptions" label="Create Captions" onAction="CreateCaptionsOnAction" getEnabled="CreateCaptionsGetEnabled"  getImage="GetImage" tag="imgAddCaptionsSmall" supertip="Create new captions for this media element." />
                <button id="btnAudioToolsAddCaptions" label="Captions From File" onAction="AddCaptionsOnAction" getEnabled="AddCaptionsGetEnabled"  getImage="GetImage" tag="imgFolderSmall" supertip="Load existing captions from a TTML file." />                
              </menu>
            </splitButton>

            <button id="btnAudioToolsEditCaptions" label="Edit Captions" onAction="EditCaptionsOnAction" getEnabled="EditCaptionsGetEnabled" size="large"  getImage="GetImage" tag="imgEditCaptions" supertip="Modify the current captions for this audio file." />
            <button id="btnAudioToolsAlignCaptions" label="Align Captions" onAction="AlignCaptionsOnAction" getEnabled="AlignCaptionsGetEnabled" size="large"  getImage="GetImage" tag="imgAlignCaptions" supertip="Re-align the captions to the audio file size or placement." />

            <button id="btnAudioToolsHideCaptions" label="Hide" onAction="HideCaptionsOnAction" getEnabled="HideCaptionsGetEnabled"  getImage="GetImage" tag="imgHideCaptionsSmall" supertip="Prevent the captions from being displayed." />
            <button id="btnAudioToolsShowCaptions" label="Show" onAction="ShowCaptionsOnAction" getEnabled="ShowCaptionsGetEnabled"  getImage="GetImage" tag="imgShowCaptionsSmall" supertip="Re-display the existing captions for this audio file." />
            <button id="btnAudioToolsRemoveCaptions" label="Remove" onAction="RemoveCaptionsOnAction" getEnabled="RemoveCaptionsGetEnabled"  getImage="GetImage" tag="imgRemoveCaptionsSmall" supertip="Permanently remove the captions." />           
          </group>
        </tab>
      </tabSet>
    </contextualTabs>
  </ribbon>
</customUI>